package com.tnr.scgcxx.controller.safty;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.tnr.scgcxx.dto.MenuDto;
import com.tnr.scgcxx.service.safty.HomeService;

@Controller
@RequestMapping("/safty")
public class SaftyView {
  
	@Resource
	private HomeService homeService;
	
	@RequestMapping("/home_to")
	public String homeTo(Model model) {
		
        List<MenuDto> menuList =homeService.getMenus();
		model.addAttribute("mainList", menuList);
		
		return "safty/home";
	}
}
